Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove variable declaration from for-loop header and enclose in block #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PaulFurtado
Copy link

This solves error: for loop initial declarations are only allowed in C99 mode when building on gcc 4.4.7 (Default gcc on CentOS 6.x) against the MySQL 5.7 libs.

This PR has two commits, the first commit only alters indentation because this appears to have accidentally been indented with 3 spaces instead of 4, so it was messing with my editor.

The important portion of the diff is in the second commit: 9ffee5d

See also: #4 which introduced 5.7 support.

This solves `error: for loop initial declarations are only allowed in C99 mode`
when building on gcc 4.4.7 (Default gcc on CentOS 6.x)
@PaulFurtado
Copy link
Author

@jamestryan Any chance you could take a look at this?

@phdru
Copy link

phdru commented Jan 14, 2018

I applied the PR in https://github.com/sqlobject/oursql in master and in branch py3k. Seems to be working. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants